/* craco.config.js */
const path = require('path')

module.exports = {
  webpack: {
    // 别名
    alias: {
      "@": path.resolve("src"),
    }
  },
  module: {
    rules: [
      {
        test: /\.module.css$/,
        use: [
          'style-loader',
          {
            loader: 'css-loader',
            options: {
              modules: true
            }
          }
        ]
      }
    ]
  }
}